<template>
	<wd-navbar
		:title="`产品详情`"
		custom-class="head"
		left-text=""
		@click-left="back"
		left-arrow
		fixed
		:safeAreaInsetTop="true"
	>
		<template #right>
			<wd-icon name="bags" size="22px" @click="toCart"></wd-icon>
		</template>
	</wd-navbar>
</template>
<script setup>
const toCart = () => {
	uni.switchTab({
		url: '/pages/cart/index',
	})
}

const back = () => {
	uni.navigateBack()
}
</script>
<style scoped lang="scss">
:deep(.head) {
	width: 750rpx;
}
</style>
